//mongodb node的驱动程序
const mongoose = require("mongoose");
//购物车的数据结构
const cartsSchema = new mongoose.Schema({
  detail: Array, //购物车详细信息
});
//创建model
//借助在这里创建的model操作数据库
const cartsModel = mongoose.model("carts", cartsSchema, "carts");
module.exports = { cartsModel };
